PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Waveform / Wire Tunnel / LuxXx - Ain't Life a Motherfucker iv.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.980 |
| 8 | fDecay=0.500 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=3 |
| 12 | nWaveMode=7 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=0 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=1.286 |
| 27 | fWaveSmoothing=0.630 |
| 28 | fWaveParam=0.000 |
| 29 | fModWaveAlphaStart=0.710 |
| 30 | fModWaveAlphaEnd=1.300 |
| 31 | fWarpAnimSpeed=0.626 |
| 32 | fWarpScale=1.331 |
| 33 | fZoomExponent=1.00001 |
| 34 | fShader=0.000 |
| 35 | zoom=0.99951 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.08925 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.650 |
| 45 | wave_g=0.650 |
| 46 | wave_b=0.650 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.005 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=20.160 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.400 |
| 64 | mv_r=1.000 |
| 65 | mv_g=0.400 |
| 66 | mv_b=1.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.000 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=1 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_init1=ma=.5; |
| 89 | wave_0_init2=my=.5; |
| 90 | wave_0_init3=md=0; //direction 0 1 2 3 |
| 91 | wave_0_per_point1=oldmd=md; |
| 92 | wave_0_per_point2=md=(md+rand(4))%4; |
| 93 | wave_0_per_point3=md=if(equal(md,oldmd),(md+1)%4,md); |
| 94 | wave_0_per_point4= |
| 95 | wave_0_per_point5=mx=mx+(equal(md,0)*.002*bass); |
| 96 | wave_0_per_point6=mx=mx-(equal(md,1)*.002*bass); |
| 97 | wave_0_per_point7=my=my+(equal(md,2)*.002*treb); |
| 98 | wave_0_per_point8=my=my-(equal(md,3)*.002*treb); |
| 99 | wave_0_per_point9= |
| 100 | wave_0_per_point10=mx=if(above(mx,.9),.5,mx); |
| 101 | wave_0_per_point11=mx=if(below(mx,.1),.5,mx); |
| 102 | wave_0_per_point12=my=if(above(my,.9),.5,my); |
| 103 | wave_0_per_point13=my=if(below(my,.1),.5,my); |
| 104 | wave_0_per_point14= |
| 105 | wave_0_per_point15=x=mx; |
| 106 | wave_0_per_point16=y=my; |
| 107 | wave_0_per_point17=a=bass*.1; |
| 108 | wave_0_per_point18= |
| 109 | wave_0_per_point19=r=bass*.5; |
| 110 | wavecode_1_enabled=1 |
| 111 | wavecode_1_samples=512 |
| 112 | wavecode_1_sep=0 |
| 113 | wavecode_1_bSpectrum=0 |
| 114 | wavecode_1_bUseDots=1 |
| 115 | wavecode_1_bDrawThick=1 |
| 116 | wavecode_1_bAdditive=1 |
| 117 | wavecode_1_scaling=1.00000 |
| 118 | wavecode_1_smoothing=0.50000 |
| 119 | wavecode_1_r=1.000 |
| 120 | wavecode_1_g=1.000 |
| 121 | wavecode_1_b=1.000 |
| 122 | wavecode_1_a=1.000 |
| 123 | wave_1_init1=mx=.5; |
| 124 | wave_1_init2=my=.5; |
| 125 | wave_1_init3=md=1; |
| 126 | wave_1_per_point1=oldmd=md; |
| 127 | wave_1_per_point2=md=(md+rand(4))%4; |
| 128 | wave_1_per_point3=md=if(equal(md,oldmd),(md+1)%4,md); |
| 129 | wave_1_per_point4= |
| 130 | wave_1_per_point5=mx=mx+(equal(md,0)*.002*bass); |
| 131 | wave_1_per_point6=mx=mx-(equal(md,1)*.002*bass); |
| 132 | wave_1_per_point7=my=my+(equal(md,2)*.002*treb); |
| 133 | wave_1_per_point8=my=my-(equal(md,3)*.002*treb); |
| 134 | wave_1_per_point9= |
| 135 | wave_1_per_point10=mx=if(above(mx,.9),.5,mx); |
| 136 | wave_1_per_point11=mx=if(below(mx,.1),.5,mx); |
| 137 | wave_1_per_point12=my=if(above(my,.9),.5,my); |
| 138 | wave_1_per_point13=my=if(below(my,.1),.5,my); |
| 139 | wave_1_per_point14= |
| 140 | wave_1_per_point15=x=mx; |
| 141 | wave_1_per_point16=y=my; |
| 142 | wave_1_per_point17=a=bass*.1; |
| 143 | wave_1_per_point18= |
| 144 | wave_1_per_point19=g=treb*.5; |
| 145 | wavecode_2_enabled=1 |
| 146 | wavecode_2_samples=512 |
| 147 | wavecode_2_sep=0 |
| 148 | wavecode_2_bSpectrum=0 |
| 149 | wavecode_2_bUseDots=1 |
| 150 | wavecode_2_bDrawThick=1 |
| 151 | wavecode_2_bAdditive=1 |
| 152 | wavecode_2_scaling=1.00000 |
| 153 | wavecode_2_smoothing=0.50000 |
| 154 | wavecode_2_r=1.000 |
| 155 | wavecode_2_g=1.000 |
| 156 | wavecode_2_b=1.000 |
| 157 | wavecode_2_a=1.000 |
| 158 | wave_2_init1=mx=.5; |
| 159 | wave_2_init2=my=.5; |
| 160 | wave_2_init3=md=2; |
| 161 | wave_2_per_point1=oldmd=md; |
| 162 | wave_2_per_point2=md=(md+rand(4))%4; |
| 163 | wave_2_per_point3=md=if(equal(md,oldmd),(md+1)%4,md); |
| 164 | wave_2_per_point4= |
| 165 | wave_2_per_point5=mx=mx+(equal(md,0)*.002*bass); |
| 166 | wave_2_per_point6=mx=mx-(equal(md,1)*.002*bass); |
| 167 | wave_2_per_point7=my=my+(equal(md,2)*.002*treb); |
| 168 | wave_2_per_point8=my=my-(equal(md,3)*.002*treb); |
| 169 | wave_2_per_point9= |
| 170 | wave_2_per_point10=mx=if(above(mx,.9),.5,mx); |
| 171 | wave_2_per_point11=mx=if(below(mx,.1),.5,mx); |
| 172 | wave_2_per_point12=my=if(above(my,.9),.5,my); |
| 173 | wave_2_per_point13=my=if(below(my,.1),.5,my); |
| 174 | wave_2_per_point14= |
| 175 | wave_2_per_point15=x=mx; |
| 176 | wave_2_per_point16=y=my; |
| 177 | wave_2_per_point17=a=bass*.1; |
| 178 | wavecode_3_enabled=1 |
| 179 | wavecode_3_samples=512 |
| 180 | wavecode_3_sep=0 |
| 181 | wavecode_3_bSpectrum=0 |
| 182 | wavecode_3_bUseDots=1 |
| 183 | wavecode_3_bDrawThick=1 |
| 184 | wavecode_3_bAdditive=1 |
| 185 | wavecode_3_scaling=1.00000 |
| 186 | wavecode_3_smoothing=0.50000 |
| 187 | wavecode_3_r=1.000 |
| 188 | wavecode_3_g=1.000 |
| 189 | wavecode_3_b=1.000 |
| 190 | wavecode_3_a=1.000 |
| 191 | wave_3_init1=mx=.5; |
| 192 | wave_3_init2=my=.4; |
| 193 | wave_3_init3=md=3; |
| 194 | wave_3_per_point1=oldmd=md; |
| 195 | wave_3_per_point2=md=(md+rand(4))%4; |
| 196 | wave_3_per_point3=md=if(equal(md,oldmd),(md+1)%4,md); |
| 197 | wave_3_per_point4= |
| 198 | wave_3_per_point5=mx=mx+(equal(md,0)*.002*bass); |
| 199 | wave_3_per_point6=mx=mx-(equal(md,1)*.002*bass); |
| 200 | wave_3_per_point7=my=my+(equal(md,2)*.002*treb); |
| 201 | wave_3_per_point8=my=my-(equal(md,3)*.002*treb); |
| 202 | wave_3_per_point9= |
| 203 | wave_3_per_point10=mx=if(above(mx,.9),.5,mx); |
| 204 | wave_3_per_point11=mx=if(below(mx,.1),.5,mx); |
| 205 | wave_3_per_point12=my=if(above(my,.9),.5,my); |
| 206 | wave_3_per_point13=my=if(below(my,.1),.5,my); |
| 207 | wave_3_per_point14= |
| 208 | wave_3_per_point15=x=mx; |
| 209 | wave_3_per_point16=y=my; |
| 210 | wave_3_per_point17=a=bass*.1; |
| 211 | shapecode_0_enabled=0 |
| 212 | shapecode_0_sides=4 |
| 213 | shapecode_0_additive=0 |
| 214 | shapecode_0_thickOutline=0 |
| 215 | shapecode_0_textured=1 |
| 216 | shapecode_0_num_inst=1 |
| 217 | shapecode_0_x=0.500 |
| 218 | shapecode_0_y=0.500 |
| 219 | shapecode_0_rad=1.20321 |
| 220 | shapecode_0_ang=0.00000 |
| 221 | shapecode_0_tex_ang=0.00000 |
| 222 | shapecode_0_tex_zoom=1.22019 |
| 223 | shapecode_0_r=1.000 |
| 224 | shapecode_0_g=0.000 |
| 225 | shapecode_0_b=0.000 |
| 226 | shapecode_0_a=0.000 |
| 227 | shapecode_0_r2=0.000 |
| 228 | shapecode_0_g2=1.000 |
| 229 | shapecode_0_b2=0.000 |
| 230 | shapecode_0_a2=0.500 |
| 231 | shapecode_0_border_r=1.000 |
| 232 | shapecode_0_border_g=1.000 |
| 233 | shapecode_0_border_b=1.000 |
| 234 | shapecode_0_border_a=0.000 |
| 235 | shapecode_1_enabled=0 |
| 236 | shapecode_1_sides=4 |
| 237 | shapecode_1_additive=0 |
| 238 | shapecode_1_thickOutline=0 |
| 239 | shapecode_1_textured=0 |
| 240 | shapecode_1_num_inst=1 |
| 241 | shapecode_1_x=0.500 |
| 242 | shapecode_1_y=0.500 |
| 243 | shapecode_1_rad=0.10000 |
| 244 | shapecode_1_ang=0.00000 |
| 245 | shapecode_1_tex_ang=0.00000 |
| 246 | shapecode_1_tex_zoom=1.00000 |
| 247 | shapecode_1_r=1.000 |
| 248 | shapecode_1_g=0.000 |
| 249 | shapecode_1_b=0.000 |
| 250 | shapecode_1_a=1.000 |
| 251 | shapecode_1_r2=0.000 |
| 252 | shapecode_1_g2=1.000 |
| 253 | shapecode_1_b2=0.000 |
| 254 | shapecode_1_a2=0.000 |
| 255 | shapecode_1_border_r=1.000 |
| 256 | shapecode_1_border_g=1.000 |
| 257 | shapecode_1_border_b=1.000 |
| 258 | shapecode_1_border_a=0.100 |
| 259 | shapecode_2_enabled=0 |
| 260 | shapecode_2_sides=4 |
| 261 | shapecode_2_additive=0 |
| 262 | shapecode_2_thickOutline=0 |
| 263 | shapecode_2_textured=0 |
| 264 | shapecode_2_num_inst=1 |
| 265 | shapecode_2_x=0.500 |
| 266 | shapecode_2_y=0.500 |
| 267 | shapecode_2_rad=0.10000 |
| 268 | shapecode_2_ang=0.00000 |
| 269 | shapecode_2_tex_ang=0.00000 |
| 270 | shapecode_2_tex_zoom=1.00000 |
| 271 | shapecode_2_r=1.000 |
| 272 | shapecode_2_g=0.000 |
| 273 | shapecode_2_b=0.000 |
| 274 | shapecode_2_a=1.000 |
| 275 | shapecode_2_r2=0.000 |
| 276 | shapecode_2_g2=1.000 |
| 277 | shapecode_2_b2=0.000 |
| 278 | shapecode_2_a2=0.000 |
| 279 | shapecode_2_border_r=1.000 |
| 280 | shapecode_2_border_g=1.000 |
| 281 | shapecode_2_border_b=1.000 |
| 282 | shapecode_2_border_a=0.100 |
| 283 | shapecode_3_enabled=0 |
| 284 | shapecode_3_sides=4 |
| 285 | shapecode_3_additive=0 |
| 286 | shapecode_3_thickOutline=0 |
| 287 | shapecode_3_textured=0 |
| 288 | shapecode_3_num_inst=1 |
| 289 | shapecode_3_x=0.500 |
| 290 | shapecode_3_y=0.500 |
| 291 | shapecode_3_rad=0.10000 |
| 292 | shapecode_3_ang=0.00000 |
| 293 | shapecode_3_tex_ang=0.00000 |
| 294 | shapecode_3_tex_zoom=1.00000 |
| 295 | shapecode_3_r=1.000 |
| 296 | shapecode_3_g=0.000 |
| 297 | shapecode_3_b=0.000 |
| 298 | shapecode_3_a=1.000 |
| 299 | shapecode_3_r2=0.000 |
| 300 | shapecode_3_g2=1.000 |
| 301 | shapecode_3_b2=0.000 |
| 302 | shapecode_3_a2=0.000 |
| 303 | shapecode_3_border_r=1.000 |
| 304 | shapecode_3_border_g=1.000 |
| 305 | shapecode_3_border_b=1.000 |
| 306 | shapecode_3_border_a=0.100 |
| 307 | per_frame_init_1=x1 = 0.5; |
| 308 | per_frame_init_2=y1 = 0.6; |
| 309 | per_frame_init_3= |
| 310 | per_frame_init_4=x2 = 0.9; |
| 311 | per_frame_init_5=y2 = 0.14; |
| 312 | per_frame_init_6= |
| 313 | per_frame_init_7=x3 = 0.5; |
| 314 | per_frame_init_8=y3 = 0.2; |
| 315 | per_frame_init_9= |
| 316 | per_frame_init_10=vr1 = 0.50001; |
| 317 | per_frame_init_11=vr2 = 0.0; |
| 318 | per_frame_init_12=vr3 = 0.0; |
| 319 | per_frame_init_13= |
| 320 | per_frame_init_14=vx1 = 0; |
| 321 | per_frame_init_15=vx2 = 0.4; |
| 322 | per_frame_init_16=vx3 = 0.9; |
| 323 | per_frame_1=zoom = 1; |
| 324 | per_frame_2=warp = .01; |
| 325 | per_frame_3=wave_a = 1; |
| 326 | per_frame_4= |
| 327 | per_frame_5=r = 0.04+ (bass_att+treb_att)*0.01; |
| 328 | per_frame_6=monitor = aspecty; |
| 329 | per_frame_7=vr = sin(vr1)*r; |
| 330 | per_frame_8=bounce = below(y1,r-(aspectx-1)*0.5);y1 = y1+vy1;vy1 = if(bounce, abs(vy1)*0.96 + (r-y1-(aspectx-1)*0.5)*0.1, vy1-0.0003*60/fps); |
| 331 | per_frame_9=vx1 = if(bounce, vx1 + (vr-vx1)*0.15, vx1);vr = if(bounce, vr + (vx1-vr)*0.85 , vr);vr1 = asin(vr/r); |
| 332 | per_frame_10=bounce = above(x1,1-r+(aspecty-1)*0.5);vx1 = if(bounce, - abs(vx1)*0.96 + (1-r-x1+(aspecty-1)*0.5)*0.1, vx1); |
| 333 | per_frame_11=vy1 = if(bounce, vy1 + (vr-vy1)*0.15, vy1);vr = if(bounce, vr + (vy1-vr)*0.85 , vr);vr1 = asin(vr/r); |
| 334 | per_frame_12=bounce = below(x1,r-(aspecty-1)*0.5);x1 = x1+vx1;vx1 = if(bounce, abs(vx1)*0.96 + (r-x1-(aspecty-1)*0.5)*0.1, vx1); |
| 335 | per_frame_13=vy1 = if(bounce, vy1 + (-vr-vy1)*0.15, vy1);vr = if(bounce, vr - (vy1+vr)*0.85 , vr);vr1 = asin(vr/r); |
| 336 | per_frame_14= |
| 337 | per_frame_15=vr = sin(vr2)*r; |
| 338 | per_frame_16=bounce = below(y2,r-(aspectx-1)*0.5);y2 = y2+vy2;vy2 = if(bounce, abs(vy2)*0.96 + (r-y2-(aspectx-1)*0.5)*0.1, vy2-0.0003*60/fps); |
| 339 | per_frame_17=vx2 = if(bounce, vx2 + (vr-vx2)*0.15, vx2);vr = if(bounce, vr + (vx2-vr)*0.85 , vr);vr2 = asin(vr/r); |
| 340 | per_frame_18=bounce = above(x2,1-r+(aspecty-1)*0.5);vx2 = if(bounce, - abs(vx2)*0.96 + (1-r-x2+(aspecty-1)*0.5)*0.1, vx2); |
| 341 | per_frame_19=vy2 = if(bounce, vy2 + (vr-vy2)*0.15, vy2);vr = if(bounce, vr + (vy2-vr)*0.85 , vr);vr2 = asin(vr/r); |
| 342 | per_frame_20=bounce = below(x2,r-(aspecty-1)*0.5);x2 = x2+vx2;vx2 = if(bounce, abs(vx2)*0.96 + (r-x2-(aspecty-1)*0.5)*0.1, vx2); |
| 343 | per_frame_21=vy2 = if(bounce, vy2 + (-vr-vy2)*0.15, vy2);vr = if(bounce, vr - (vy2+vr)*0.85 , vr);vr2 = asin(vr/r); |
| 344 | per_frame_22= |
| 345 | per_frame_23=vr = sin(vr3)*r; |
| 346 | per_frame_24=bounce = below(y3,r-(aspectx-1)*0.5);y3 = y3+vy3;vy3 = if(bounce, abs(vy3)*0.96 + (r-y3-(aspectx-1)*0.5)*0.1, vy3-0.0003*60/fps); |
| 347 | per_frame_25=vx3 = if(bounce, vx3 + (vr-vx3)*0.15, vx3);vr = if(bounce, vr + (vx3-vr)*0.85 , vr);vr3 = asin(vr/r); |
| 348 | per_frame_26=bounce = above(x3,1-r+(aspecty-1)*0.5);vx3 = if(bounce, - abs(vx3)*0.96 + (1-r-x3+(aspecty-1)*0.5)*0.1, vx3); |
| 349 | per_frame_27=vy3 = if(bounce, vy3 + (vr-vy3)*0.15, vy3);vr = if(bounce, vr + (vy3-vr)*0.85 , vr);vr3 = asin(vr/r); |
| 350 | per_frame_28=bounce = below(x3,r-(aspecty-1)*0.5);x3 = x3+vx3;vx3 = if(bounce, abs(vx3)*0.96 + (r-x3-(aspecty-1)*0.5)*0.1, vx3); |
| 351 | per_frame_29=vy3 = if(bounce, vy3 + (-vr-vy3)*0.15, vy3);vr = if(bounce, vr - (vy3+vr)*0.85 , vr);vr3 = asin(vr/r); |
| 352 | per_frame_30= |
| 353 | per_frame_31=bounce = below( sqrt( sqr(x1+vx1-x2-vx2) + sqr(y1+vy1-y2-vy2)), 2*r); |
| 354 | per_frame_32=bounce = bounce*below(sqrt( sqr(x1+vx1-x2-vx2) + sqr(y1+vy1-y2-vy2)),sqrt( sqr(x1-x2) + sqr(y1-y2))); |
| 355 | per_frame_33=ref_ang = atan2(x2-x1,y2-y1)+asin(1); // common tangent |
| 356 | per_frame_34=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx2*vx2+vy2*vy2);w1 = atan2(vx1,vy1);w2 = atan2(vx2,vy2); |
| 357 | per_frame_35=vr = sin(vr1)*r; v2r=sin(vr2)*r; |
| 358 | per_frame_36=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-sin(ref_ang)*v1*cos(w1-ref_ang))*0.1 |
| 359 | per_frame_37= + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 360 | per_frame_38=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-cos(ref_ang)*v1*cos(w1-ref_ang))*0.1 |
| 361 | per_frame_39= + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 362 | per_frame_40=vx2 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-sin(ref_ang)*v2*cos(w2-ref_ang))*0.1 |
| 363 | per_frame_41= + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx2); |
| 364 | per_frame_42=vy2 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-cos(ref_ang)*v2*cos(w2-ref_ang))*0.1 |
| 365 | per_frame_43= + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy2); |
| 366 | per_frame_44=vr = if(bounce, vr + (cos(w1-ref_ang)*(v1-v2)-vr)*0.9 , vr);vr1 = asin(vr/r); |
| 367 | per_frame_45=v2r = if(bounce, v2r + (cos(w2-ref_ang)*(v2-v1)-v2r)*0.9 , v2r);vr2 = asin(v2r/r); |
| 368 | per_frame_46= |
| 369 | per_frame_47=bounce = below( sqrt( sqr(x1+vx1-x3-vx3) + sqr(y1+vy1-y3-vy3)), 2*r); |
| 370 | per_frame_48=bounce = bounce*below(sqrt( sqr(x1+vx1-x3-vx3) + sqr(y1+vy1-y3-vy3)),sqrt( sqr(x1-x3) + sqr(y1-y3))); |
| 371 | per_frame_49=ref_ang = atan2(x3-x1,y3-y1)+asin(1); // common tangent |
| 372 | per_frame_50=v1 = sqrt(vx1*vx1+vy1*vy1);v2 = sqrt(vx3*vx3+vy3*vy3);w1 = atan2(vx1,vy1);w2 = atan2(vx3,vy3); |
| 373 | per_frame_51=vr = sin(vr1)*r; v2r=sin(vr3)*r; |
| 374 | per_frame_52=vx1 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-sin(ref_ang)*v1*cos(w1-ref_ang))*0.1 |
| 375 | per_frame_53= + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx1); |
| 376 | per_frame_54=vy1 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-cos(ref_ang)*v1*cos(w1-ref_ang))*0.1 |
| 377 | per_frame_55= + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy1); |
| 378 | per_frame_56=vx3 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-sin(ref_ang)*v2*cos(w2-ref_ang))*0.1 |
| 379 | per_frame_57= + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx3); |
| 380 | per_frame_58=vy3 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-cos(ref_ang)*v2*cos(w2-ref_ang))*0.1 |
| 381 | per_frame_59= + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy3); |
| 382 | per_frame_60=vr = if(bounce, vr + (cos(w1-ref_ang)*(v1-v2)-vr)*0.9 , vr);vr1 = asin(vr/r); |
| 383 | per_frame_61=v2r = if(bounce, v2r + (cos(w2-ref_ang)*(v2-v1)-v2r)*0.9 , v2r);vr3 = asin(v2r/r); |
| 384 | per_frame_62= |
| 385 | per_frame_63=bounce = below( sqrt( sqr(x3+vx3-x2-vx2) + sqr(y3+vy3-y2-vy2)), 2*r); |
| 386 | per_frame_64=bounce = bounce*below(sqrt( sqr(x2+vx2-x3-vx3) + sqr(y2+vy2-y3-vy3)),sqrt( sqr(x2-x3) + sqr(y2-y3))); |
| 387 | per_frame_65=ref_ang = atan2(x2-x3,y2-y3)+asin(1); // common tangent |
| 388 | per_frame_66=v1 = sqrt(vx3*vx3+vy3*vy3);v2 = sqrt(vx2*vx2+vy2*vy2);w1 = atan2(vx3,vy3);w2 = atan2(vx2,vy2); |
| 389 | per_frame_67=vr = sin(vr3)*r; v2r=sin(vr2)*r; |
| 390 | per_frame_68=vx3 = if(bounce,sin(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-sin(ref_ang)*v1*cos(w1-ref_ang))*0.1 |
| 391 | per_frame_69= + sin(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vx3); |
| 392 | per_frame_70=vy3 = if(bounce,cos(ref_ang)*v1*cos(w1-ref_ang) + ((vr-v2r)-cos(ref_ang)*v1*cos(w1-ref_ang))*0.1 |
| 393 | per_frame_71= + cos(ref_ang+asin(1))*v2*cos(w2-ref_ang-asin(1)), vy3); |
| 394 | per_frame_72=vx2 = if(bounce,sin(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-sin(ref_ang)*v2*cos(w2-ref_ang))*0.1 |
| 395 | per_frame_73= + sin(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vx2); |
| 396 | per_frame_74=vy2 = if(bounce,cos(ref_ang)*v2*cos(w2-ref_ang) + ((v2r-vr)-cos(ref_ang)*v2*cos(w2-ref_ang))*0.1 |
| 397 | per_frame_75= + cos(ref_ang+asin(1))*v1*cos(w1-ref_ang-asin(1)), vy2); |
| 398 | per_frame_76=vr = if(bounce, vr + (cos(w1-ref_ang)*(v1-v2)-vr)*0.9 , vr);vr3 = asin(vr/r); |
| 399 | per_frame_77=v2r = if(bounce, v2r + (cos(w2-ref_ang)*(v2-v1)-v2r)*0.9 , v2r);vr2 = asin(v2r/r); |
| 400 | per_frame_78= |
| 401 | per_frame_79= |
| 402 | per_frame_80= |
| 403 | per_frame_81= |
| 404 | per_frame_82=q1 = aspectx; |
| 405 | per_frame_83=q2 = aspecty; |
| 406 | per_frame_84=q3 = r*2; |
| 407 | per_frame_85= |
| 408 | per_frame_86=q4 = x1; q5 = y1; q6 = vr1; |
| 409 | per_frame_87=q7 = x2; q8 = y2; q9 = vr2; |
| 410 | per_frame_88=q10 = x3; q11 = y3; q12 = vr3; |
| 411 | per_frame_89= |
| 412 | per_frame_90=q13 = atan2( (x1+x2+x3)/3 - 0.5, (y1+y2+y3)/3-0.5); |
| 413 | per_frame_91=q14 = sigmoid(sqrt( sqr((x1+x2+x3)/3 - 0.5) + sqr((y1+y2+y3)/3-0.5) ),2)*0.2; |
| 414 | warp_1=`shader_body |
| 415 | warp_2=`{ |
| 416 | warp_3=` // sample previous frame |
| 417 | warp_4=` ret = tex2D( sampler_fc_main, uv ).xyz; |
| 418 | warp_5=` |
| 419 | warp_6=` // motion blur by Geiss |
| 420 | warp_7=` // 'v' points exactly one pixel, in the direction of motion |
| 421 | warp_8=` float2 v = normalize(uv-uv_orig)*texsize.zw; |
| 422 | warp_9=` float3 s; |
| 423 | warp_10=` ret = max(ret, tex2D(sampler_main, uv+v)*0.97); |
| 424 | warp_11=` ret = max(ret, tex2D(sampler_main, uv-v)*0.97); |
| 425 | warp_12=` ret = max(ret, tex2D(sampler_main, uv+v*2)*0.90); |
| 426 | warp_13=` ret = max(ret, tex2D(sampler_main, uv-v*2)*0.90); |
| 427 | warp_14=` |
| 428 | warp_15=` // darken (decay) over time |
| 429 | warp_16=` ret = (ret-0.005)*0.98; //or try: ret -= 0.004; |
| 430 | warp_17=`} |
| 431 | comp_1=`shader_body |
| 432 | comp_2=`{ |
| 433 | comp_3=`float2 uv1 = (uv-0.5)*aspect.xy; |
| 434 | comp_4=` |
| 435 | comp_5=`float rad2 = length(uv1) + .05; |
| 436 | comp_6=`float rad1 = .1/rad2 ; |
| 437 | comp_7=` |
| 438 | comp_8=`float2 uv2 = float2 (ang/3.14, rad1*1.5); |
| 439 | comp_9=`uv2.y = uv2.y +0.1*time; |
| 440 | comp_10=`uv2.x = uv2.x +.02*time; |
| 441 | comp_11=` |
| 442 | comp_12=`float2 uv3 = float2 (ang/3.14, rad1); |
| 443 | comp_13=`uv3.y = uv3.y + q30 ; |
| 444 | comp_14=`uv3.x = uv3.x + time/32; |
| 445 | comp_15=` |
| 446 | comp_16=` |
| 447 | comp_17=`float3 crisp = GetPixel(uv2) + 2*GetPixel(uv3); |
| 448 | comp_18=`crisp += 2*GetBlur2(frac(uv2)) + 2*GetBlur2(frac(uv3)); |
| 449 | comp_19=` |
| 450 | comp_20=`float3 lay1 = float3 (1,0,1)*uv.y*pow(1-rad,8); |
| 451 | comp_21=` |
| 452 | comp_22=`crisp = 3*crisp * pow(rad,1); |
| 453 | comp_23=` |
| 454 | comp_24=`float mask = saturate(1-4*rad); |
| 455 | comp_25=` |
| 456 | comp_26=`ret = crisp + lay1*mask + mask * GetPixel(uv); |
| 457 | comp_27=` |
| 458 | comp_28=`} |